Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to resume bulk jobs #22

Merged
merged 8 commits into from
Dec 19, 2017
Merged

Conversation

KAllan357
Copy link
Contributor

No description provided.

Copy link
Contributor

@dmosorast dmosorast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed.

rec[k] = val

return rec
job_id = state.get('bookmarks', {}).get(catalog_entry['tap_stream_id'], {}).get('JobID', None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same code as get_bookmark()


def resume_syncing_bulk_query(sf, catalog_entry, job_id, state, counter):
bulk = Bulk(sf)
current_bookmark = state['bookmarks'].get(catalog_entry['tap_stream_id'], {}).get('JobHighestSystemModstamp') or sf.get_start_date(state, catalog_entry)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_bookmark


state = singer.write_bookmark(state,
catalog_entry['tap_stream_id'],
'JobHighestSystemModstamp',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JobHighestBookmarkSeen?

@KAllan357 KAllan357 merged commit f50ca2b into master Dec 19, 2017
@KAllan357 KAllan357 deleted the feature/bulk-job-resuming branch December 19, 2017 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants